#include "Stack.h"

int main()
{
	ST ps;
	StackInit(&ps);
	StackPush(&ps,1);
	StackPush(&ps,2);
	StackPush(&ps,3);
	StackPush(&ps,4);
	StackPush(&ps,5);

	while (!StackEmpty(&ps))
	{
		int tmp = StackTop(&ps);
		printf("%d ", tmp);
		StackPop(&ps);
	}

	StackDestory(&ps);

	return 0;
}